public class hk4Q1
{
    public static void main(String[] arg)
    {
        double a = 1;
        double b = 0;
        for (int count = 1; count < 11; count++)
        {
            a = a * count;
            b += a;
        }
        System.out.println(b);
    }
}
class TEST
{
}